package tratamentoExcecoes;


public class Excecao extends Exception{

	private static final long serialVersionUID = -3304131636957935318L;
	private String message;
	private Throwable cause;
	
	public Excecao(){}
	
	public Excecao(String message){
		this.message = message;
	}
	
	public Excecao(String message, Throwable cause){
		this.message = message;
		this.cause = cause;
	}
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Throwable getCause() {
		return cause;
	}

	public void setCause(Throwable cause) {
		this.cause = cause;
	}

	public static void exibirExcecao(MensagemExcecao codigoExcecao, Exception e){
		//JOptionPane.showMessageDialog(new JPanel(), codigoExcecao,
		//		"Erro!", JOptionPane.ERROR_MESSAGE);
		e.printStackTrace();
	}
	
}
